﻿using System;
namespace FxhjpgWeb.Model
{
	///<summary>
	///
	///</summary>
	public class Message : ModelBase<int>
	{
		#region 成员字段
		
		private string _address = String.Empty;
		private string _blog = String.Empty;
		private string _compname = String.Empty;
		private string _content = String.Empty;
		private string _email = String.Empty;
		private string _fax = String.Empty;
		private string _inIP = String.Empty;
		private DateTime? _inTime = null;
		///<summary>
		///留言时间查询区间值
		///</summary>
		private DateTime[] _inTimespan = null;
		private string _qQ = String.Empty;
		private int _reply = 0;
		private string _tel = String.Empty;
		private string _title = String.Empty;
        private string _username = String.Empty;
        private string _zip = String.Empty;
        private int _num = 0;
        private int _state = 0;
		
		#endregion
		
		#region 构造方法
		
		public Message() { }
		
		#endregion
		
		#region 成员方法
		
		public override int GetHashCode()
		{
			System.Text.StringBuilder sb = new System.Text.StringBuilder();
			sb.Append(this.GetType().FullName);
			sb.Append(_address);
			sb.Append(_blog);
			sb.Append(_compname);
			sb.Append(_content);
			sb.Append(_email);
			sb.Append(_fax);
			sb.Append(_inIP);
			sb.Append(_inTime);
			sb.Append(_qQ);
			sb.Append(_reply);
			sb.Append(_tel);
			sb.Append(_title);
            sb.Append(_username);
            sb.Append(_zip);
            sb.Append(_num);
            sb.Append(_state);
			return sb.ToString().GetHashCode();
		}
		
		#endregion
		
		#region 成员属性
		
		///<summary>
		///联系地址
		///</summary>
		public string Address
		{
			get
			{
				return _address;
			}
			set
			{
				_address = value;
			}
		}
		///<summary>
		///主页
		///</summary>
		public string Blog
		{
			get
			{
				return _blog;
			}
			set
			{
				_blog = value;
			}
		}
		///<summary>
		///单位名称
		///</summary>
		public string Compname
		{
			get
			{
				return _compname;
			}
			set
			{
				_compname = value;
			}
		}
		///<summary>
		///相关内容
		///</summary>
		public string Content
		{
			get
			{
				return _content;
			}
			set
			{
				_content = value;
			}
		}
		///<summary>
		///Email
		///</summary>
		public string Email
		{
			get
			{
				return _email;
			}
			set
			{
				_email = value;
			}
		}
		///<summary>
		///联系传真
		///</summary>
		public string Fax
		{
			get
			{
				return _fax;
			}
			set
			{
				_fax = value;
			}
		}
		///<summary>
		///留言IP
		///</summary>
		public string InIP
		{
			get
			{
				return _inIP;
			}
			set
			{
				_inIP = value;
			}
		}
		///<summary>
		///留言时间
		///</summary>
		public DateTime? InTime
		{
			get
			{
				return _inTime;
			}
			set
			{
				_inTime = value;
			}
		}
		///<summary>
		///留言时间查询区间值
		///</summary>
		public DateTime[] InTimespan{
			get
			{
				return _inTimespan;
			}
			set
			{
				_inTimespan = value;
			}
		}
		///<summary>
		///qq
		///</summary>
		public string QQ
		{
			get
			{
				return _qQ;
			}
			set
			{
				_qQ = value;
			}
		}
		///<summary>
		///回复留言id
		///</summary>
		public int Reply
		{
			get
			{
				return _reply;
			}
			set
			{
				_reply = value;
			}
		}
		///<summary>
		///联系电话
		///</summary>
		public string Tel
		{
			get
			{
				return _tel;
			}
			set
			{
				_tel = value;
			}
		}
		///<summary>
        ///产品名称
		///</summary>
		public string Title
		{
			get
			{
				return _title;
			}
			set
			{
				_title = value;
			}
		}
		///<summary>
		///您的姓名
		///</summary>
		public string Username
		{
			get
			{
				return _username;
			}
			set
			{
				_username = value;
			}
		}
        ///<summary>
        ///产品数量
        ///</summary>
        public int Num
        {
            get
            {
                return _num;
            }
            set
            {
                _num = value;
            }
        }
        ///<summary>
        ///邮编
        ///</summary>
        public string Zip
        {
            get
            {
                return _zip;
            }
            set
            {
                _zip = value;
            }
        }
        ///<summary>
        ///状态
        ///</summary>
        public int State
        {
            get
            {
                return _state;
            }
            set
            {
                _state = value;
            }
        }
		
        /// <summary>
        /// 自定义查询条件
        /// </summary>
        public string CustomWhere { get; set; }
		
		#endregion
	}
		
	public static class MessageHash
	{
		public const string TopNum = "TopNum";
		public const string OrderField = "OrderField";
		public const string OrderDirection = "OrderDirection";
		public const string Address = "Address";
		public const string Blog = "Blog";
		public const string Compname = "Compname";
		public const string Content = "Content";
		public const string Email = "Email";
		public const string Fax = "Fax";
		public const string Id = "Id";
		public const string InIP = "InIP";
		public const string InTime = "InTime";
		public const string QQ = "QQ";
		public const string Reply = "Reply";
		public const string Tel = "Tel";
		public const string Title = "Title";
        public const string Username = "Username";
        public const string Num = "Num";
        public const string Zip = "Zip";
        public const string State = "State";
		
        public const string CustomWhere = "CustomWhere";
	}
}